<?php namespace Home\Controller; 

use Hdphp\Controller\Controller;
//前台控制器
class IndexController extends Controller{

	
    //动作
    public function index(){
		$cateData = Db::table('category')->where("pid=0")->orderBy('csort','ASC')->get();
		//sp($cateData);exit;
		View::with('cateData',$cateData);
       	View::make();
    }
	
	
	
}
